<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  body{
    margin: 0px;
  }
  .btn{
    position: fixed;
    left: 80%;
    top: 80%;
  }
  .btn-2{
    position: fixed;
    left: 70%;
    top: 80%;
  }
</style>
<body>
  <div class="container">
    <ul class="list">
      <li class="list-item">
        <h2>《电影名》</h2>
        <h6>导演：xxx</h6>
        <p>电影简绍</p>
        <p>上映时间</p>
      </li>
      <li class="list-item">
        <h2>《电影名》</h2>
        <h6>导演：xxx</h6>
        <p>电影简绍</p>
        <p>上映时间</p>
      </li>
      <li class="list-item">
        <h2>《电影名》</h2>
        <h6>导演：xxx</h6>
        <p>电影简绍</p>
        <p>上映时间</p>
      </li>
      <li class="list-item">
        <h2>《电影名》</h2>
        <h6>导演：xxx</h6>
        <p>电影简绍</p>
        <p>上映时间</p>
      </li>
      <li class="list-item">
        <h2>《电影名》</h2>
        <h6>导演：xxx</h6>
        <p>电影简绍</p>
        <p>上映时间</p>
      </li>
      <li class="list-item">
        <h2>《电影名》</h2>
        <h6>导演：xxx</h6>
        <p>电影简绍</p>
        <p>上映时间</p>
      </li>
      <li class="list-item">
        <h2>《电影名》</h2>
        <h6>导演：xxx</h6>
        <p>电影简绍</p>
        <p>上映时间</p>
      </li>
      <li class="list-item">
        <h2>《电影名》</h2>
        <h6>导演：xxx</h6>
        <p>电影简绍</p>
        <p>上映时间</p>
      </li>
      <li class="list-item">
        <h2>《电影名》</h2>
        <h6>导演：xxx</h6>
        <p>电影简绍</p>
        <p>上映时间</p>
      </li>
    </ul>
  </div>
  <button class="btn">回到顶部</button>
  <button class="btn-2">开始</button>
</body>
<script>
  var btn = document.getElementsByClassName('btn')[0];
  var btn_2 = document.getElementsByClassName('btn-2')[0];
  var item = document.getElementsByClassName('container')[0];
  var swit = true;
  btn.onclick = function(){
     window.scrollTo(0, 0);
  }
  btn_2.onclick = function(){
    // if(swit === true){
    //   swit != swit;
    //   set = setInterval(() => {
    //     window.scrollBy(0,20);
    //   }, 500);
    // }else{
    //   swit != swit;
    //   // clearInterval(set);
    //   this.innerHTML = "暂定";

    // }
    swit != swit;
    if(swit === true){
      this.innerHTML = "暂停";
    }else{
      this.innerHTML = "开始";
    }
    
  }

</script>
</html>